<div class="row">
    <div class="col-md-12">
    <div class="block">
        <div class="block-title">
            <h2><strong>Listado de Usuarios </strong> </h2>
        </div>

        <div class="table-responsive">
            <table id="example-datatable" class="table table-vcenter table-condensed table-bordered">
                <thead>
                    <tr>
                        <th class="text-center">Nro</th>
                        <th class="text-center">Foto</th>
                        <th>Rol</th>
                        <th>Nombre</th>
                        <th>Apellido Paterno</th>
                        <th>Apellido Materno</th>
                        <th>C.I.</th>
                        <th>RNI</th>
                        <th>Accion</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $i = 1; ?>
                    <?php foreach ($colegiados as $col): ?>
                        <tr>
                            <td class="text-center"><?php
                                echo $i;
                                $i++;
                                ?></td>
                            <td class="text-center"><img src="./img/placeholders/avatars/avatar7.jpg" alt="avatar" class="img-circle" /></td>
                            <td><?php echo $col['User']['role'] ?></td>
                            <td><?php echo $col['User']['nombres']; ?></td>
                            <td><?php echo $col['User']['ap_paterno']; ?></td>
                            <td><?php echo $col['User']['ap_materno']; ?></td>
                            <td><?php echo $col['User']['ci']; ?></td>
                            <td><?php echo $col['User']['rni']; ?></td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <a href="<?php echo $this->Html->url(array('controller' => 'Colegiados', 'action' => 'edit', $col['User']['id'])); ?>"data-toggle="tooltip" title="Editar Usuario" class="btn btn-xs btn-default"><i class="fa fa-pencil"></i></a>

                                    <a href="<?php echo $this->Html->url(array('controller' => 'Colegiados', 'action' => 'delete', $col['User']['id']), array('action' => 'delete', $col['User']['id']), array('escape' => false)); ?>" data-toggle="tooltip" title="Delete" class="btn btn-xs btn-danger"><i class="fa fa-times"></i></a>
                                    <a href="<?php echo $this->Html->url(array('controller' => 'Colegiados', 'action' => '', $col['User']['id']), array('action' => '', $col['User']['id']), array('escape' => false)); ?>" data-toogle="tooltip" title="Ver Datos" class="btn btn-xs btn-success"> <i class="fa fa-folder-open"></i></a>

                                </div>
                            </td>
                        </tr>
<?php endforeach; ?>

                </tbody>
            </table>
        </div>

    </div>
</div>    
</div>